package com.aries.crossgate.common.job.service;

import com.aries.crossgate.common.job.entity.QuartzJobEntity;
import com.aries.crossgate.common.utils.R;

import java.util.List;


/**
 * 定时任务
 *
 * @author ZhouChenglin
 * @email yczclcn@163.com
 * @url www.chenlintech.com
 * @date 2017年8月20日 下午11:48:32
 */
public interface QuartzJobService {
	
	List<QuartzJobEntity> getJob(QuartzJobEntity quartzJobEntity);
	
	R save(QuartzJobEntity job);

	QuartzJobEntity getQuartzJobById(String jobId);
	
	R updateQuartzJob(QuartzJobEntity job);
	
	R batchRemoveQuartzJob(String[] id);
	
	R run(String[] id);
	
	R pause(String[] id);
	
	R resume(String[] id);
	
}
